#ifndef _configutil_h_
#define _configutil_h_
#include "LogUtil.h"
#include <yaml.h>
#include <iostream>
#include <fstream>
#include <string>

class ConfigUtil
{
private:
    static ConfigUtil* configUtil_;
    int screenHeight_;
    int screenWidth_;

    ConfigUtil();
    ConfigUtil(ConfigUtil const&);

public:
    static ConfigUtil* Instance() {
        if (configUtil_ == NULL) {
            configUtil_ = new ConfigUtil();
        }
        return configUtil_;
    }
    ~ConfigUtil();

    bool ParseConfig(const std::string filename);

    void SetScreenHeight(const int& screenHeight);
    const int& GetScreenHeight();

    void SetScreenWidth(const int& screenWidth);
    const int& GetScreenWidth();

};

#endif